home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
assemblr
/
library
/
coreaids
/
scrn_sav.asm
< prev
next >
Wrap
Assembly Source File
|
1987-06-25
|
834b
|
40 lines
; DESC: Saves 16K screen from video memory V1.00
; SAMPLE: SCRN_SAV
; ##################################################################
SCREEND Segment Para Common 'DATA'
DB 16384 DUP(0)
SCREEND Ends
Extrn PUSHALL:Near
Extrn POPALL:Near
Extrn SCRN_TYP:Near
Extrn MOVE_BYT:Near
SCRN_SAC Segment
Assume CS:SCRN_SAC,DS:SCREEND
Public SCRN_SAV
Include CALLM.MAC
;notice.
DB 'SCRN_SAV - V1.00, Copyright 1987, CoreTechs ',0DH,0AH
SCRN_SAV Proc Near ;saves video screen memory.
Call PUSHALL ;save registers.
Call SCRN_TYP ;determine if color or b&w.
Pop AX ;recover screen offset.
Mov BX,SCREEND ;setup workarea.
Mov DS,BX
Callm MOVE_BYT,<AX,0,SCREEND,0,16384>,;store video screen.
Call POPALL
Ret
SCRN_SAV Endp
SCRN_SAC Ends
End